package appapi.entity.basic;

import appapi.common.BaseEntity;
import appapi.common.UpdateGroup;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 请求对象
 *
 * @author luocheng
 * @version 1.0
 * @date 2023/05/26 10:11
 */
@Data
@NoArgsConstructor
@TableName("operatingitem")
public class OperatingItemEntity extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 作业项目id
     */
    @NotNull(message = "类别ID不能为空", groups = {UpdateGroup.class})
    @TableId(type = IdType.AUTO)
    private Long operItemId;

    /**
     * 作业类型
     */
    private Long operTypeId;

    /**
     * 项目名称
     */
    private String operItemName;

    /**
     * 项目名称
     */
    private String operItemCode;

    /**
     * 备注说明
     */
    private String operItemDesc;
}
